
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class TaskdynamicTaskCfg : public ManualSingleton <TaskdynamicTaskCfg>
{
	friend ManualSingleton <TaskdynamicTaskCfg>;
public:
	TaskdynamicTaskCfg();
	~TaskdynamicTaskCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const TaskdynamicTaskCfgInfo *GetTaskdynamicTaskCfgInfo(int32_t taskID);
	const TaskdynamicTaskCfgMap *GetTaskdynamicTaskCfgMap() { return &m_TaskdynamicTaskCfgMap; }
private:
	TaskdynamicTaskCfgMap m_TaskdynamicTaskCfgMap;
};

#define  g_MakeTaskdynamicTaskCfgTable() (TaskdynamicTaskCfg::Instance())
#define  g_GetTaskdynamicTaskCfgTable() (TaskdynamicTaskCfg::GetInstance())
#define  g_DelTaskdynamicTaskCfgTable() (TaskdynamicTaskCfg::Destroy())